package cn.edu.sicau.databasepp.dao;

import cn.edu.sicau.databasepp.entity.UserEntity;
import org.springframework.data.jpa.repository.JpaRepository;
import org.springframework.data.repository.query.Param;
import org.springframework.data.rest.core.annotation.RepositoryRestResource;

@RepositoryRestResource(path="user")
public interface UserEntityDao extends JpaRepository<UserEntity,Long>
{
    UserEntity findByUserNameStartsWith(@Param("user_name")String username);
}
